package com.colin.service.impl;

import com.colin.mapper.ChanPinMapper;
import com.colin.pojo.ChanPian;
import com.colin.service.ChanPinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChanPinServiceImpl implements ChanPinService {
@Autowired
    ChanPinMapper chanPinMapper;
    @Override
    public List<ChanPian> selectALL () {
        return chanPinMapper.selectALL();
    }

    @Override
    public void insert (ChanPian chanPian) {
        chanPinMapper.insert(chanPian);
    }

    @Override
    public void delete (Integer id) {
        chanPinMapper.delete(id);
    }

    @Override
    public int count () {
        return chanPinMapper.count();
    }
}
